#Elementary OS Freya Env Config
echo "[Update Package]"
sudo apt-get update
sudo apt-get -y upgrade

echo "[System Env]"

#Install exFat
echo "Install exFat"
sudo apt-get install -y exfat-utils
echo ""

#Install CIFS
echo "Install CIFS Utils"
sudo apt-get install -y cifs-utils

#Install Git
echo "Install Git"
sudo apt-get install -y git
echo ""

#Install JDK
echo "Install OpenJDK"
sudo apt-get install -y default-jre
sudo apt-get install -y default-jdk
echo ""

sudo apt-get install libc6-i386
sudo apt-get install ia32-libs

echo "[System Tools]"
#Install Samba-Server AND Samba-Config
echo "Install Samba-Server AND Samba-Config"
sudo apt-get install -y system-config-samba
echo ""

#Install System Monitor
echo ""
echo "Install System Monitor"
sudo apt-get install -y gnome-system-monior
echo ""

echo "[Software]"
#Install Gedit
echo "Install "
sudo apt-get install -y gedit
echo ""

#Download Google Chrome Stable
echo "Download Google Chrome Stable"
#wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

#Install Google Chrome Stable
echo "Install Google Chrome Stable"
sudo dpkg -i google-chrome-stable_current_amd64.deb
echo ""
sudo apt-get -f -y install

#Install Mozilla Firefox
echo "Install Mozilla Firefox"
sudo apt-get install -y firefox

#Install VLC Player
echo "Install VLC Player"
sudo apt-get install -y vlc
echo ""

#Install Fcitx
echo "Install Fcitx"
echo "Remove ibus"
sudo apt-get remove -y ibus
echo "Install Fcitx"
sudo add-apt-repository ppa:fcitx-team/nightly
sudo apt-get update
sudo apt-get install -y im-config fcitx


#TODO:change /etc/os-release file to ElementaryOS 

#Install Sogou
echo "Install Sogou"
wget http://download.ime.sogou.com/1432523940/sogoupinyin_1.2.0.0056_amd64.deb?st=wJ7QI3TZAF4x_4G-Kz937A&e=1437242141&fn=sogoupinyin_1.2.0.0056_amd64.deb
sudo dpkg -i sogoupinyin_1.2.0.0056_amd64.deb

#TODO:reback /etc/os-release file to Elementary OS

echo "[System Config]"

echo "[Root Elementary OS]"
sudo reboot